using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter40
{
	/// <summary>
	/// Example06: The Wavelength of a Rock
	/// A rock of mass 50 g is thrown with a speed of 40 m/s. 
	/// What is its de Broglie wavelength?
	/// </summary>
	public class Example06
	{
		public Example06()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 50.0E-3;
			L.Velocity v = new L.Velocity();
			v.X = 40.0;
			L.Momentum p = new L.Momentum(m,v);
			double length 
				= L.QuantumPhysics.deBroglieWavelength(p);
			result+=Convert.ToString(length);
		}
	}
}
